//
//  BIDNode.h
//  HJGJCommunity
//
//  Created by mal on 2017/5/31.
//  Copyright © 2017年 mal. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BIDNode : NSObject

/**
 节点数据
 */
@property (strong, nonatomic) NSDictionary *data;
    
/**
 孩子数组
 */
@property (strong, nonatomic) NSMutableArray *childArr;

@property (strong, nonatomic) BIDNode *parentNode;
/**
 节点的父节点ID
 */
@property (copy, nonatomic) NSString *parentID;

/**
 节点ID
 */
@property (copy, nonatomic) NSString *nodeID;

/**
 当前节点是否已展开
 */
@property (assign, nonatomic) BOOL isExpand;

/**
 是否叶子节点
 */
@property (assign, nonatomic) BOOL isLeaf;
    
/**
 是部门还是人
 */
@property (assign, nonatomic) BOOL isPerson;

/**
 是否选中
 */
@property (assign, nonatomic) BOOL isChoose;
@property (assign, nonatomic) CHOOSE_STATUS chooseStatus;

/**
 层级
 */
@property (assign, nonatomic) NSUInteger level;
    
/**
 获取参数node下的所有直系和非直系的子节点

 @return <#return value description#>
 */
- (NSArray *)getAllRelatedChildNode;
- (NSArray *)getAllRelatedParentNode;

- (void)chooseNode;
- (void)inchooseNode;

@end
